import { TARGET_TYPE } from "apis/types/business";

export interface ITab {
  tab: string;
  tabKey: string;
  unit: string;
  key: string;
  searchType: TARGET_TYPE
}

export const TABS: IDictionary<ITab> = {
  MUSIC: {
    tab: '单曲',
    tabKey: 'MUSIC',
    unit: '首',
    key: 'song',
    searchType: TARGET_TYPE.MUSIC,
  },
  ARTIST: {
    tab: '歌手',
    tabKey: 'ARTIST',
    unit: '位',
    key: 'artist',
    searchType: TARGET_TYPE.ARTIST,
  },
  ALBUM: {
    tab: '专辑',
    tabKey: 'ALBUM',
    unit: '张',
    key: 'album',
    searchType: TARGET_TYPE.ALBUM,
  },
  SONG_LIST: {
    tab: '歌单',
    tabKey: 'SONG_LIST',
    unit: '个',
    key: 'playlist',
    searchType: TARGET_TYPE.SONG_LIST,
  },
  USER: {
    tab: '用户',
    tabKey: 'USER',
    unit: '位',
    key: 'userprofile',
    searchType: TARGET_TYPE.USER,
  },
}
